package lab8.task2;

public class GCTest {
	byte array[] = new byte[1024];

	public static void main(String[] args) {
		
		
		//100 or 100000 iterations - GC wasn't called, so finalize() wasn't called too. 
		//1000000 iterations - GC was called, so finalize() was called too
		int numberOfIterations = 1000000;
		
		for (int i = 0; i < numberOfIterations; i++) {
			Foo foo = new Foo(i);
		}
	}

}
